#ifndef INFINITY_IMAGE_BOX_H
#	define INFINITY_IMAGE_BOX_H

#include "widget.h"

namespace infinity {

class ImageBox:
	public Widget
{

public : //! @name Struct
	//! @{
	typedef Widget super;
	//! @}

public :
	ImageBox();
	virtual ~ImageBox();

public ://! @name Commands
	//! @{
	virtual dw::uint32 collectGeometry(/*VertexBuffer* vb, IndexBuffer *ib*/std::vector<UiVertex>* vb, std::vector< dw::uint16 >* ib, const dw::maths::Vector2f& posOffset = dw::maths::Vector2f(0.0f,0.0f));
	inline void setDimension(dw::maths::Vector2f dim){ m_dimension = dim ;}
	inline void setImageUV(dw::maths::Vector2f upleftCorner, dw::maths::Vector2f downRightCorner){ m_upleftCorner = upleftCorner ; m_downRightCorner = downRightCorner;}

	//! @}

protected :

	dw::maths::Vector2f m_dimension;
	dw::maths::Vector2f m_upleftCorner;
	dw::maths::Vector2f m_downRightCorner;


};

} // namespace infinity


#endif // !INFINITY_IMAGE_BOX_H
